const {baseService2} =require('../../baseService2')
const model =require('../../../dao/model/model')
const beansEnter =require('../../../beans/beansEnter')


/* 异常类 */
class pointServiceError extends Error {
    constructor(error,message='知识点异常'){
        super()
        this.error = error
        this.message=message
    }
}


/* 
			kemuid:{ type: Schema.Types.ObjectId, ref: 'kemu' },
			pointName:String,
			pointDesc:String
*/
class pointService extends baseService2{

    static ins = new pointService()

    static getIns (){
        if(this.ins){
            return this.ins
        }else{
            return new pointService()
        }
    }

    constructor(){
        super(model.modelpoint,beansEnter.point,pointServiceError)
    }
}







module.exports={pointService}

